//
//  HCWThrowAnimation.h
//  LRShop
//
//  Created by HCW on 16/8/9.
//  Copyright © 2016年 HCW. All rights reserved.
//

#import <Foundation/Foundation.h>

@class HCWThrowAnimation;
@protocol HCWThrowAnimationDelegate <NSObject>
- (void)throwAnimation:(HCWThrowAnimation *)animation didStop:(BOOL)flag;
@end

@interface HCWThrowAnimation : NSObject

@property (nonatomic, weak) id<HCWThrowAnimationDelegate> delegate;
@property (nonatomic, strong) UIView *showingView;

/**
 *  开始贝塞尔曲线动画
 *  view: 被动画的view
 *  fromPoint: 开始位置 （用convertRect:toView:方法获取）
 *  fromPoint: 结束位置 （用convertRect:toView:方法获取）
 */
- (void)beginThrowAnimationWithView:(UIView *)view
                          fromPoint:(CGPoint)fromPoint
                            toPoint:(CGPoint)toPoint;

@end
